package cn.test;

public class Phone {
	private String brand;
	private double price;
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	// public String student1() {}
	public void action(String msg) {
		System.out.println(msg);

	}

	Phone() {
	}

	Phone(String name, String brand, double price) {
		this.brand = brand;
		this.price = price;
		this.name = name;

	}

	@Override
	public String toString() {
		return name + "正在使用" + brand + "价格为" + price + "的手机在";
	}

}
